package com.achen.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author achen
 * @create 2020-05-04 1:19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Result implements Serializable {
    private Boolean flag; //返回结果的状态，true 成功，false 失败
    private String message; //返回结果信息
    private Object data; //返回数据

    public Result(Boolean flag, String message) {
        this.flag = flag;
        this.message = message;
    }
}
